//
//  CommenTools.swift
//  YYWeibo
//
//  Created by strongwallyi on 15/12/26.
//  Copyright © 2015年 strongwallyi. All rights reserved.
//

import UIKit

//屏幕宽度
let SCREENW = UIScreen.mainScreen().bounds.size.width
//屏幕高度
let SCREENH = UIScreen.mainScreen().bounds.size.height

// 切换根控制器的通知名字
let YYSwitchRootViewControllerNotification = "YYSwitchRootViewControllerNotification"

//随机颜色
func RandomColor() -> UIColor{
    
    return UIColor(red: CGFloat(arc4random() % 256) / 255, green: CGFloat(arc4random() % 256) / 255, blue: CGFloat(arc4random() % 256) / 255, alpha: 1)
}